home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- import os
- import computerjanitor
- import apt
-
- class DebPlugin(computerjanitor.Plugin):
- '''Plugin for post_cleanup processing with apt.
-
- This plugin does not find any cruft of its own. Instead it
- centralizes the post_cleanup handling for all packages that remove
- .deb packages.
-
- '''
-
- def get_cruft(self):
- return []
-
-
- def post_cleanup(self):
-
- try:
- self.app.apt_cache.commit(apt.progress.TextFetchProgress(), apt.progress.DumbInstallProgress())
- except Exception:
- e = None
- raise
- finally:
- self.app.refresh_apt_cache()
-
-
-
-